const _locations = [
    {'id': 19, 'title': '液压系统'},
    {'id': 18, 'title': '辊系'},
    {'id': 22, 'title': '传动系统'},
    {'id': 20, 'title': '给料'},
    {'id': 21, 'title': '稀油润滑系统'},
    {'id': 21, 'title': ''},
    {'id': 21, 'title': ''},
    {'id': 21, 'title': ''},
    {'id': 21, 'title': ''},
    {'id': 21, 'title': ''},
    {'id': 21, 'title': ''},
    {'id': 21, 'title': ''},
    {'id': 21, 'title': ''}
]

export default {
  getLocations (cb) {
    setTimeout(() => cb(_locations), 100)
  },
  getLocationById (id) {
    return _locations.find(loc => loc.id === id)
  }
}
